package com.API.beans;

import com.API.dal.entities.Costs;
import com.API.dal.providers.CostsProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.LinkedList;
import java.util.List;

@Component
@Scope("request")
public class CostBean {

    @Autowired
    CostsProvider costsProvider;

    List<Costs> costsList;
    Costs cost;
    Costs selectedCost;


    public Costs getSelectedCost() {
        return selectedCost;
    }

    public Costs getCost() {
        return cost;
    }

    public void setCost(Costs cost) {
        this.cost = cost;
    }

    public void setSelectedCost(Costs selectedCost) {
        this.selectedCost = selectedCost;
    }

    public List<Costs> getCostsList() {
        return costsList;
    }

    public List<Costs> getProjectCosts(int project_id){
        return new LinkedList<Costs>();
    }
}
